Skip to content

TT-4429: CRUDs for rules/policies/lists, new feature#312

Open
googsvg wants to merge 1 commit intomainfrom
TT-4429-java-sdk-for-crud-rules-policies
Open

TT-4429: CRUDs for rules/policies/lists, new feature#312
googsvg wants to merge 1 commit intomainfrom
TT-4429-java-sdk-for-crud-rules-policies

Conversation

@googsvg
Copy link
Copy Markdown
Contributor

@googsvg googsvg commented Apr 21, 2026

Summary

- Add CRUD operations for Policies, Rules, and Lists (Nylas Administration API)                                                                                      
- New resource classes: `Policies`, `Rules`, `NylasLists` — accessible via `client.policies()`, `client.rules()`, `client.lists()`                                   
- `NylasLists` also exposes `listItems`, `addItems`, and `removeItems` for managing list contents                

Notes

- All endpoints are app-level (no `grantId` in path) and `nylas` provider only                   
- `removeItems` uses DELETE with a JSON body, consistent with the existing `Bookings.destroy()` pattern
- `NylasList` / `NylasLists` naming avoids collision with Kotlin's `kotlin.collections.List`                                                                         

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.65217% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.30%. Comparing base (ded101e) to head (4842304).

Files with missing lines Patch % Lines
src/main/kotlin/com/nylas/NylasClient.kt 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #312      +/-   ##
============================================
+ Coverage     82.47%   83.30%   +0.82%     
- Complexity      357      396      +39     
============================================
  Files            37       40       +3     
  Lines          1027     1096      +69     
  Branches         95       95              
============================================
+ Hits            847      913      +66     
- Misses          121      124       +3     
  Partials         59       59              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants